const seq = require('sequelize')
const time = require('../time');
module.exports = {
  NAME: 'sys_dict_type',
  TABLE: {
    dict_id: {
      type: seq.INTEGER(20),
      primaryKey: true,
      unique: true,
      autoIncrement: true,
      allowNull: false,
      comment: 'dict_id 字典主键',
      field: 'dict_id', //  相应的字段名称
    },
    dict_name:{
      type: seq.STRING(100),
      allowNull: false,
      comment: '字典名称',
      field: 'dict_name', //  相应的字段名称
      defaultValue: ''
    },
    dict_type: {
      type: seq.STRING(100),
      comment: '字典类型',
      field: 'dict_type',
      defaultValue: ''
    },
    status: {
      type: seq.CHAR(1),
      comment: '状态（1正常 0停用）',
      field: 'status',
      defaultValue: '1'
    },
    del_flag:{
      type: seq.CHAR(1),
      comment: '删除标志（0代表存在 2代表删除）',
      field: 'del_flag',
      defaultValue: '0'
    },
    remark: {
      type: seq.STRING(500),
      comment: '备注',
      field: 'remark',
      defaultValue: ''
    },
    ...time.create_date,
    ...time.update_date,
    ...time.create_by,
    ...time.update_by,
  },
}
